/*
** my_strncmp.c for galaf in /home/compilation/galaf-lib
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Fri Mar 23 03:16:30 2012 christophe labonnemartinez
** Last update Sat Aug 11 12:41:06 2012 christophe labonnemartinez
*/

#include "includes/my.h"

int	my_strncmp(const char *s1, const char *s2, int n)
{
  if (!n)
    return (0);
  while (--n != 0)
    {
      if (s1[n] != s2[n])
	return (*s1 - *s2);
    }
  return (0);
}
